package net.stock.service;

import net.stock.db.DayPrice;
import net.stock.db.StockItem;
import net.stock.domain.ItemPrice;
import org.joda.time.DateTime;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @author naim
 * @date Dec 23, 2009
 */

public interface StockDao {
    Collection<StockItem> getStockItems(String email);
    void saveStockItem(StockItem si);
    void deleteStockItem(String owner, Long id);

    void saveDayPrices(DateTime date, Map<String, Float> priceMap);
    void deletePrices(DateTime date);
    Collection<DayPrice> getDayPrices(String item);
    public Map<String, Float> getPriceMap(DateTime date);

    Map<String, List<ItemPrice>>  getNotifMapForAllUsers(Map<String, Float> lastestPriceMap);
}
